<template>
  <div class="userWork">
    <mynav title="我的作品" :path="path"></mynav>
    <div class="content">
      <van-tabs v-model="active" animated class="tab">
        <van-tab title="作品">
          <div class="example">
            <div class="name">
              <div class="img"><img src="@/assets/logo.png" alt="" /></div>
              <div class="nickname">
                <h3>黑马蔡徐坤</h3>
                <span>2018-09-08</span>
              </div>
            </div>
            <div class="work">
              <h3>用Supervisor实现进程守护，在异常退出时...</h3>
              <div class="img f2">
                <img src="@/assets/logo.png" alt="" />
                <img src="@/assets/logo.png" alt="" />
                <img src="@/assets/logo.png" alt="" />
              </div>
              <div class="down">
                <div class="c1">
                  <i class="iconfont">&#xe65b;</i> <span>55</span>
                </div>
                <div class="c1 active">
                  <i class="iconfont">&#xe639;</i> <span>55</span>
                </div>
                <div class="c1">
                  <i class="iconfont">&#xe63c;</i> <span>55</span>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="公告"></van-tab>
        <van-tab title="数据"></van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
import mynav from '@/components/mynav.vue'
export default {
  data () {
    return {
      path: '/home/user',
      active: '2'
    }
  },
  components: { mynav }
}
</script>

<style lang="less">
.userWork {
  .content {
    .example {
      padding: 20px 15px;
      .name {
        display: flex;
        justify-content: start;
        .img {
          width: 37px;
          height: 37px;
          border-radius: 50%;
          border: 1px solid #000;
          img {
            border-radius: 50%;
            width: 36px;
            height: 36px;
          }
        }
        .nickname {
          padding-left: 10px;
          h3 {
            margin: 0;
            font-family: MicrosoftYaHei;
            font-size: 14px;
            font-weight: 600;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #222222;
          }
          span {
            font-family: ArialMT;
            font-size: 12px;
            font-weight: normal;
            font-stretch: normal;
            letter-spacing: 0px;
            color: #999999;
          }
        }
      }
      .work {
        h3 {
          font-family: MicrosoftYaHei;
          font-size: 15px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 1px;
          color: #3a3a3a;
        }
        .img {
          display: flex;
          justify-content: space-between;
          padding-bottom: 5px;
          img {
            border: 1px solid #000;
            width: 110px;
            height: 73px;
          }
        }
      }
      .down {
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 0 15px;
        height: 47px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .c1 {
          align-items: center;
          line-height: 47px;
          .iconfont {
            font-size: 22px;
          }
          span {
            font-size: 16px;
          }
        }
      }
      .active {
        padding-left: 37px;
        padding-right: 37px;
        height: 47px;
        border-right: 2px solid #ccc;
        border-left: 2px solid #ccc;
      }
    }
  }
}
</style>
